package com.qhnu.zxjx;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

import javax.annotation.PostConstruct;
import java.util.TimeZone;

@SpringBootApplication
public class ZxjxApplication {

    @PostConstruct
    void postConstruct() {
        // 统一时区,且数据库连接url加上:&serverTimezone=PRC
        TimeZone.setDefault(TimeZone.getTimeZone("PRC"));
    }

    public static void main(String[] args) {
        SpringApplication.run(ZxjxApplication.class, args);
    }

}
